package cn.stylefeng.guns.modular.yingbao.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;

/**
 * <p>
 * 用户金额
 * </p>
 *
 * @author zs
 * @since 2019-12-10
 */
@TableName("yingbao_user_money")
public class UserMoney extends Model<UserMoney> implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.ID_WORKER)
    private Long id;

    /**
     * 用户id
     */
    @TableField("userid")
    private Long userid;

    /**
     * 冻结金额
     */
    @TableField("frozen_capital")
    private Long frozenCapital;

    /**
     * 可用金额
     */
    @TableField("avail_money")
    private Long availMoney;

    /**
     * 返利金额
     */
    @TableField("expand_money")
    private Long expandMoney;

    /**
     * 推广金额
     */
    @TableField("rebate_money")
    private Long rebateMoney;

    /**
     * 建仓金额
     */
    @TableField("cabin_money" )
    private Long cabinMoney;

    /**
     * 创建时间
     */
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time", fill = FieldFill.UPDATE)
    private Date updateTime;

    /**
     * 乐观锁
     */
    @TableField("version")
    private Long version;

    /**
     * 备胎1
     */
    @TableField("backup1")
    private Long backup1;

    /**
     * 备胎2
     */
    @TableField("backup2")
    private String backup2;

    /**
     * 备胎3
     */
    @TableField("backup3")
    private String backup3;

    /**
     * 备胎4
     */
    @TableField("backup4")
    private String backup4;

    /**
     * 备胎5
     */
    @TableField("backup5")
    private String backup5;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getUserid() {
        return userid;
    }

    public void setUserid(Long userid) {
        this.userid = userid;
    }

    public Long getFrozenCapital() {
        return frozenCapital;
    }

    public void setFrozenCapital(Long frozenCapital) {
        this.frozenCapital = frozenCapital;
    }

    public Long getAvailMoney() {
        return availMoney;
    }

    public void setAvailMoney(Long availMoney) {
        this.availMoney = availMoney;
    }

    public Long getExpandMoney() {
        return expandMoney;
    }

    public void setExpandMoney(Long expandMoney) {
        this.expandMoney = expandMoney;
    }

    public Long getRebateMoney() {
        return rebateMoney;
    }

    public void setRebateMoney(Long rebateMoney) {
        this.rebateMoney = rebateMoney;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Long getVersion() {
        return version;
    }

    public void setVersion(Long version) {
        this.version = version;
    }

    public Long getBackup1() {
        return backup1;
    }

    public void setBackup1(Long backup1) {
        this.backup1 = backup1;
    }

    public String getBackup2() {
        return backup2;
    }

    public void setBackup2(String backup2) {
        this.backup2 = backup2;
    }

    public String getBackup3() {
        return backup3;
    }

    public void setBackup3(String backup3) {
        this.backup3 = backup3;
    }

    public String getBackup4() {
        return backup4;
    }

    public void setBackup4(String backup4) {
        this.backup4 = backup4;
    }

    public String getBackup5() {
        return backup5;
    }

    public void setBackup5(String backup5) {
        this.backup5 = backup5;
    }

    public Long getCabinMoney() {
        return cabinMoney;
    }

    public void setCabinMoney(Long cabinMoney) {
        this.cabinMoney = cabinMoney;
    }

    @Override
    public String toString() {
        return "UserMoney{" +
                "id=" + id +
                ", userid=" + userid +
                ", frozenCapital=" + frozenCapital +
                ", availMoney=" + availMoney +
                ", expandMoney=" + expandMoney +
                ", rebateMoney=" + rebateMoney +
                ", cabinMoney=" + cabinMoney +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                ", version=" + version +
                ", backup1='" + backup1 + '\'' +
                ", backup2='" + backup2 + '\'' +
                ", backup3='" + backup3 + '\'' +
                ", backup4='" + backup4 + '\'' +
                ", backup5='" + backup5 + '\'' +
                '}';
    }
}
